<template>
	<view class="warp">
		<view class="header">
			<view class="time_warp">
				<picker mode="date" fields="year" @change='timeChange'>{{2025}}年</picker>
			</view>
			<view class="title">
				鲨鱼记账
			</view>
		</view>
		<view class="content">
			<view class="banner">
				<view>
					结余
				</view>
				<view class="banner_money">
					3333333
				</view>
				<view class="banner_bottom">
					<view>
						收入 99999
					</view>
					<view>
						支出 995555
					</view>
				</view>
			</view>

			<view class="conent_list">
				<view class="conent_list_title">
					<view>月份</view>
					<view>月收入</view>
					<view>月支出</view>
					<view>月结余</view>
				</view>
				<view class="conent_list_item">
					<view>01月</view>
					<view>666</view>
					<view>777</view>
					<view>888</view>
				</view>
			</view>
		</view>
		
		<Tabbar :page="page" @addCheck='isAddCheck=true'></Tabbar>
		
		<addList v-if="isAddCheck" @Cancel="isAddCheck=false"></addList>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isAddCheck:false,
				page:'/pages/tabbar/tabbar-4/tabbar-4',
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			timeChange(e) {
				const multiIndex = e.detail.value;

			},

		}
	}
</script>

<style>
	.header {
		position: fixed;
		top: 0;
		left: 0;
		padding-top: 28px;

	}

	.time_warp {
		position: absolute;
		bottom: 0;
		left: 16px;
		display: flex;
		align-items: center;
		/* transform: translateY(-50%%); */
	}

	.time_warp::after {
		display: inline-block;
		content: ' ';
		width: 0;
		height: 0;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 10px solid black;
		margin-left: 5px;
	}

	.title {
		font-size: 18px;
		text-align: center;
		width: 100vw;
	}

	.content {
		margin-top: 70px;
	}

	.banner {
		background-color: yellow;
		margin: 0 16px;
		padding: 12px 16px;
		border-radius: 16px;
	}

	.banner>view:first-child {
		font-size: 12px;
		margin-bottom: 5px;
	}

	.banner_money {
		font-size: 24px;
		font-weight: bold;
	}

	.banner_bottom {
		display: flex;
		margin-top: 20px;

	}

	.banner_bottom>view:first-child {
		margin-right: 40px;
	}
	.conent_list{
		padding: 0 16px;
	}
		
	.conent_list_item,.conent_list_title{
		padding: 6px 0px;
		display:flex;
		font-size: 12px;
		color: #999;
		justify-content: space-between;
	}
	.conent_list>view{
		border-bottom: 1px solid #ccc;
	}
		
	.conent_list_item{
		font-size: 14px;
		color: #000;
	}
	.conent_list>view>view{
		flex: 1;
		text-align: center;
	}
</style>